package cn.iocoder.yudao.module.picturebook.controller.admin.allData;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.picturebook.controller.admin.allData.vo.DashboardData;
import cn.iocoder.yudao.module.picturebook.service.DashboardData.DashboardDataService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Tag(name = "绘本系统 - 数据总览")
@RestController
@RequestMapping("/picturebook/AllData")
@Validated
public class AllDataController {
    @Resource
    private DashboardDataService dashboardDataService;
    @Operation(summary = "获取数据总览")
    @GetMapping("/getAllData")
    public CommonResult<DashboardData> getAllData(){
        return CommonResult.success(dashboardDataService.getAllData());
    }

}
